<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<?php $this->display('inc_base.php',0,'500让博彩更容易') ?>
	 <link rel="stylesheet" href="/skin/laofan/pclist.css">
</head>
<body>
<?php $this->display('inc_header.php') ?>
	<div class="pageBady custom clearfix">
	<div class="main">
	  <ul class="cz_nav">
		<li class="on" data-type="all"><a>全部彩种</a></li>
 
	  </ul>
	  <div class="clear"></div>
	  <div>
		<div class="cz_menu">
		  <div id="_games_1" style="position:relative;"> <i><!-- 用来挡住第一个竖的 --></i>
			<p name="list">
<?php
   	$sql="select *  from ssc_type  ";
	$all_types = $this->getRows($sql); 
 
	foreach($all_types as   $ve){
	$ki = $ve['id'];
 
?> 			
				<a   href="/index/kaijiang-1/<?=$ki?>"  > <span><?=$ve['title']?></span></a>
			 <?php }     ?>
			 </p>
		  </div>
		  <div class="clear"></div>
		</div>
		<div id="_iframe_divs">
		  <div id="_games_2" class="cz-box" style="display: block;">
			<div class="kj_box">
			  <h1>最新彩票开奖结果</h1>
			  <table cellpadding="0" cellspacing="0" class="kj_tab">
				<thead>
				  <tr class="title">
					<td width="88">彩种</td>
					<td width="120">期号</td>
					<td width="180">开奖时间</td>
					<td width="330">开奖号码</td>
					<td width="110" style="display:none;">期数(每天)</td>
					<td width="78" style="display:none;">开奖频率</td>
					<td width="40">详情</td>
					<td width="40">走势</td>
					<td width="80">购买彩票</td>
				  </tr>
				</thead>
				<tbody>
<?php
	foreach($all_types as   $ve){
	$ki = $ve['id'];
	//print_r( $ve);
  	$sql="select * from ssc_data where type={$ki} order by id desc limit 1 ";
	$ssc=$this->getRows($sql);  $var = $ssc[0]; 
	if(empty($var))continue;  
?> 					
				  <tr   class="bgcolor">
					<td><a href="/index/game/<?=$ki?>/2" class="name"  ><?=$ve['title']?></a></td>
					<td><a href="/index/game/<?=$ki?>/2" ><?=$var['number']?></a></td>
					<td><?=date('H:i', $var['time'])?></td>
					<td>
						<div class="ballbg">
						<?php $tmp = $var['data'] ;
							$tmp_arr = explode(',',$tmp);
							foreach($tmp_arr as $v){ if(empty($v))continue;
						?>
							<span><?=$v?></span>
						 <?php } ?>
						</div>
					</td>
					<td style="display:none;">3期</td>
					<td style="display:none;"><?=$ve['data_ftime']?>分</td>
					<td><a href="/index/game/<?=$ki?>/2" class="c-blue blod"  ><img src="/skin/laofan/images/details.gif"></a></td>
					<td><a  href="/index.php/chartssc?type=<?=$ki?>&count=30"><img src="/skin/laofan/images/zst_01.gif"></a></td>
					<td class="b"><a  href="/index/game/<?=$ki?>/2" class="draw-lottery-btn">投注</a></td>
				  </tr>
<?php }     ?>				  
				                
				</tbody>
			  </table>
			</div>
		  </div>
		  <div class="div_iframe" name="iframe_div"></div>
		</div>
	  </div>
	</div>
</div>
 
 <?php $this->display('inc_footer3.php') ?>
	 
</body>
</html>ml>ody>
</html>html>